﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profiles.aspx.vb" Inherits="myproject.Profiles" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div>
     <table width="920" cellspacing="30"
     style="border-style: groove">       
     <tr>
 
     <td>


     <table>
     <tr>
     <td>
     <h1 style="border-bottom-style: groove; width: 413px; ">Profile Info</h1>  
     </td>
     </tr>
     </table>

     <table>
     <tr>
     <td>
     <asp:Accordion ID="Accordion2" runat="server">
         <Panes>
         <asp:AccordionPane ID="AccordionPane5" runat="server" >
         <Header><h2 style="border-style: double; width: 413px; background-image: url('Images/back_img_profile.jpg'); color: #FFFFFF;">General Info</h2></Header>
         <Content>    
     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
               DataKeyNames="ID" DataSourceID="userProfileDataSource">
               <Columns>
                   <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
                       SortExpression="FirstName" />
                   <asp:BoundField DataField="LastName" HeaderText="LastName" 
                       SortExpression="LastName" />
                   <asp:BoundField DataField="UserName" HeaderText="UserName" 
                       SortExpression="UserName" />
                   <asp:BoundField DataField="Description" HeaderText="Description" 
                       SortExpression="Description" />
               </Columns>
               <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
           </asp:GridView>
           <asp:SqlDataSource ID="userProfileDataSource" runat="server" 
               ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
               ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
               SelectCommand="SELECT [ID], [FirstName], [LastName], [UserName], [Description], [Picture] FROM [UserProfiles] WHERE ([UserName] = ?)">
               <SelectParameters>
                   <asp:QueryStringParameter Name="UserName" QueryStringField="Username" 
                       Type="String" />
               </SelectParameters>
           </asp:SqlDataSource>
          
           </Content>
           </asp:AccordionPane>


            <asp:AccordionPane ID="AccordionPane6" runat="server" >
         <Header><h2 style="border-style: double; width: 413px; background-image: url('Images/back_img_profile.jpg'); color: #FFFFFF;">About Yourself</h2></Header>
         <Content>
    <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="userProfilerJustDescriptionDataSource">
        <Columns>
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
        </Columns>
                       <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>
    <asp:SqlDataSource ID="userProfilerJustDescriptionDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID], [FirstName], [Description] FROM [UserProfiles] WHERE ([UserName] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="UserName" QueryStringField="UserName" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
         </Content>
         </asp:AccordionPane>

         <asp:AccordionPane ID="AccordionPane7" runat="server" >
         <Header><h2 style="border-style: double; width: 413px; background-image: url('Images/back_img_profile.jpg'); color: #FFFFFF;">Awards</h2></Header>
         <Content>General Information 3</Content>
         </asp:AccordionPane>

         <asp:AccordionPane ID="AccordionPane8" runat="server" >
         <Header><h2 style="border-style: double; width: 413px; background-image: url('Images/back_img_profile.jpg'); color: #FFFFFF;">Other Info</h2></Header>
         <Content>General Information 4</Content>
         </asp:AccordionPane>


            </Panes>
         </asp:Accordion>
     </td>
     </tr>
     <tr>
     <td>
     <asp:Button ID="btn_userProfileEdit" runat="server" Text="Edit Profile" Height="28px" 
     Width="83px" Font-Bold="true" Font-Size = 'Small' BorderStyle="Groove" 
             PostBackUrl="~/ProfilesEdit.aspx" />
     </td>
     </tr>
     </table>
 

     </td>
     

     <td>


     <table>
     <tr>
     <td>   
     <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
             DataKeyNames="ID" DataSourceID="userProfileJustPictureDataSource">
             <Columns>
                 <asp:ImageField DataImageUrlField="Picture" DataImageUrlFormatString="{0}">
                 <ControlStyle BackColor="#669999" BorderColor="#99CCFF" BorderStyle="Groove" 
                    Height="250px" Width="250px" />
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                 </asp:ImageField>
             </Columns>
             <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
         </asp:GridView>
         <asp:SqlDataSource ID="userProfileJustPictureDataSource" runat="server" 
             ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
             ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
             SelectCommand="SELECT [Picture], [UserName], [ID], [FirstName], [LastName], [Description] FROM [UserProfiles] WHERE ([UserName] = ?)">
             <SelectParameters>
                 <asp:QueryStringParameter Name="UserName" QueryStringField="UserName" 
                     Type="String" />
             </SelectParameters>
         </asp:SqlDataSource>
     
     </td>
     </tr>
     </table>
     
     </td>
 
 
     </tr>
              <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
         </asp:ToolkitScriptManager>     
     </table>     
</div>

</asp:Content>
